<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>熙康健康体检系统 - 预约列表</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        :root {
            --primary: #1a9dae;
            --primary-dark: #0e7a87;
            --secondary: #2c3e50;
            --accent: #e74c3c;
            --light: #f8f9fa;
            --success: #2ecc71;
            --warning: #f39c12;
            --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* 顶部导航 */
        .top-nav {
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 0.8rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .nav-left {
            display: flex;
            align-items: center;
        }
        
        .nav-logo {
            display: flex;
            align-items: center;
            margin-right: 2rem;
        }
        
        .nav-logo i {
            font-size: 1.8rem;
            color: var(--primary);
            margin-right: 10px;
        }
        
        .nav-logo span {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--secondary);
        }
        
        .nav-menu {
            display: flex;
            list-style: none;
        }
        
        .nav-menu li {
            margin: 0 1rem;
        }
        
        .nav-menu a {
            text-decoration: none;
            color: var(--secondary);
            font-weight: 500;
            padding: 0.5rem 0.8rem;
            border-radius: 6px;
            transition: var(--transition);
            display: flex;
            align-items: center;
        }
        
        .nav-menu a i {
            margin-right: 8px;
            font-size: 1.1rem;
        }
        
        .nav-menu a.active, 
        .nav-menu a:hover {
            background: rgba(26, 157, 174, 0.1);
            color: var(--primary);
        }
        
        .nav-right {
            display: flex;
            align-items: center;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            margin-right: 1.5rem;
        }
        
        .user-info img {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 10px;
            border: 2px solid var(--primary);
        }
        
        .logout-btn {
            background: transparent;
            border: none;
            color: var(--accent);
            cursor: pointer;
            font-size: 1.1rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            padding: 0.5rem;
            border-radius: 6px;
        }
        
        .logout-btn:hover {
            background: rgba(231, 76, 60, 0.1);
        }
        
        /* 主要内容区 */
        .main-content {
            flex: 1;
            padding: 2rem;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }
        
        .page-header {
            margin-bottom: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .page-header h2 {
            color: var(--secondary);
            font-size: 1.8rem;
            display: flex;
            align-items: center;
        }
        
        .page-header h2 i {
            margin-right: 12px;
            color: var(--primary);
        }
        
        .page-content {
            background: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            padding: 2rem;
        }
        
        /* 搜索区域 */
        .search-container {
            background: white;
            border-radius: 10px;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
        }
        
        .search-input {
            flex: 1;
            min-width: 250px;
            padding: 0.8rem 1.2rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
        }
        
        .search-btn {
            padding: 0.8rem 1.5rem;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .search-btn:hover {
            background: var(--primary-dark);
        }
        
        /* 表格样式 */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1.5rem;
        }
        
        .data-table th,
        .data-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        
        .data-table th {
            background: #f8f9fa;
            font-weight: 600;
            color: var(--secondary);
            position: sticky;
            top: 60px;
        }
        
        .data-table tr:hover {
            background: #f8f9fa;
        }
        
        .status {
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .status-pending {
            background: rgba(243, 156, 18, 0.1);
            color: #e67e22;
        }
        
        .status-confirmed {
            background: rgba(46, 204, 113, 0.1);
            color: #27ae60;
        }
        
        .status-canceled {
            background: rgba(231, 76, 60, 0.1);
            color: #c0392b;
        }
        
        .status-completed {
            background: rgba(52, 152, 219, 0.1);
            color: #2980b9;
        }
        
        .action-btn {
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
            margin-right: 0.5rem;
            display: inline-flex;
            align-items: center;
        }
        
        .action-btn i {
            margin-right: 5px;
        }
        
        .action-btn.edit {
            background: rgba(26, 157, 174, 0.1);
            color: var(--primary);
        }
        
        .action-btn.cancel {
            background: rgba(231, 76, 60, 0.1);
            color: var(--accent);
        }
        
        .action-btn.view {
            background: rgba(155, 89, 182, 0.1);
            color: #8e44ad;
        }
        
        .action-btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        /* 分页样式 */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
            gap: 0.5rem;
        }
        
        .pagination-btn {
            padding: 0.6rem 1rem;
            background: white;
            border: 1px solid #ddd;
            border-radius: 6px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .pagination-btn:hover, .pagination-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 筛选区域 */
        .filter-section {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
            align-items: center;
        }
        
        .filter-label {
            font-weight: 500;
            color: var(--secondary);
        }
        
        .filter-select {
            padding: 0.6rem;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: white;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .top-nav {
                padding: 0.8rem 1.5rem;
            }
            
            .main-content {
                padding: 1.5rem;
            }
            
            .nav-menu li:not(.active) {
                display: none;
            }
            
            .nav-menu {
                flex-wrap: wrap;
            }
        }
        
        @media (max-width: 768px) {
            .page-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .page-header .btn {
                margin-top: 1rem;
            }
            
            .data-table {
                display: block;
                overflow-x: auto;
            }
            
            .action-btn {
                margin-bottom: 0.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .user-info span {
                display: none;
            }
            
            .nav-logo span {
                font-size: 1.2rem;
            }
            
            .search-container {
                flex-direction: column;
                align-items: stretch;
            }
            
            .filter-section {
                flex-direction: column;
                align-items: stretch;
            }
        }
        
        /* 统计卡片 */
        .stats-container {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .stat-card {
            background: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
            min-width: 200px;
            flex: 1;
            text-align: center;
            border-top: 4px solid var(--primary);
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .stat-card h3 {
            color: var(--secondary);
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }
        
        .stat-card .number {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--primary);
        }
        
        .stat-card .trend {
            margin-top: 0.5rem;
            font-size: 0.9rem;
            color: var(--success);
            display: flex;
            align-items: center;
        }
        
        .stat-card .trend.down {
            color: var(--accent);
        }
        
        /* 导出按钮 */
        .export-btn {
            padding: 0.8rem 1.5rem;
            background: var(--success);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
        }
        
        .export-btn i {
            margin-right: 8px;
        }
        
        .export-btn:hover {
            background: #27ae60;
        }
    </style>
</head>
<body>
    
    
    <!-- 主要内容区 -->
    <main class="main-content">
        <div class="page-header">
            <h2><i class="fas fa-list"></i> 预约列表</h2>
            <button class="export-btn">
                <i class="fas fa-download"></i> 导出数据
            </button>
        </div>
        
        <div class="stats-container">
            <div class="stat-card">
                <h3>总预约数</h3>
                <div class="number">1,248</div>
                <div class="trend"><i class="fas fa-arrow-up"></i> 12% 月增长</div>
            </div>
            <div class="stat-card">
                <h3>今日预约</h3>
                <div class="number">42</div>
                <div class="trend"><i class="fas fa-arrow-up"></i> 3% 较昨日</div>
            </div>
            <div class="stat-card">
                <h3>待确认</h3>
                <div class="number">18</div>
                <div class="trend down"><i class="fas fa-arrow-down"></i> 2% 较昨日</div>
            </div>
            <div class="stat-card">
                <h3>已完成</h3>
                <div class="number">1,023</div>
                <div class="trend"><i class="fas fa-arrow-up"></i> 8% 较上周</div>
            </div>
        </div>
        
        <div class="page-content">
            <div class="search-container">
                <input type="text" class="search-input" placeholder="搜索姓名、电话或预约号">
                <button class="search-btn"><i class="fas fa-search"></i> 搜索</button>
            </div>
            
            <div class="filter-section">
                <div class="filter-group">
                    <span class="filter-label">状态筛选：</span>
                    <select class="filter-select">
                        <option>全部状态</option>
                        <option>待确认</option>
                        <option>已确认</option>
                        <option>已完成</option>
                        <option>已取消</option>
                    </select>
                </div>
                
                <div class="filter-group">
                    <span class="filter-label">套餐类型：</span>
                    <select class="filter-select">
                        <option>全部套餐</option>
                        <option>基础套餐</option>
                        <option>全面套餐</option>
                        <option>精英套餐</option>
                        <option>老年关爱套餐</option>
                        <option>女性专属套餐</option>
                    </select>
                </div>
                
                <div class="filter-group">
                    <span class="filter-label">日期范围：</span>
                    <input type="date" class="filter-select">
                    <span class="filter-label">至</span>
                    <input type="date" class="filter-select">
                </div>
            </div>
            
            <table class="data-table">
                <thead>
                    <tr>
                        <th>预约号</th>
                        <th>姓名</th>
                        <th>联系方式</th>
                        <th>预约日期</th>
                        <th>套餐类型</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>BK20230610001</td>
                        <td>张伟</td>
                        <td>138****5678</td>
                        <td>2023-06-12 09:00</td>
                        <td>全面套餐</td>
                        <td><span class="status status-confirmed">已确认</span></td>
                        <td>
                            <button class="action-btn view"><i class="fas fa-eye"></i> 查看</button>
                            <button class="action-btn edit"><i class="fas fa-edit"></i> 编辑</button>
                        </td>
                    </tr>
                    <tr>
                        <td>BK20230610002</td>
                        <td>李芳</td>
                        <td>139****1234</td>
                        <td>2023-06-13 10:00</td>
                        <td>女性专属套餐</td>
                        <td><span class="status status-confirmed">已确认</span></td>
                        <td>
                            <button class="action-btn view"><i class="fas fa-eye"></i> 查看</button>
                            <button class="action-btn edit"><i class="fas fa-edit"></i> 编辑</button>
                        </td>
                    </tr>
                    <tr>
                        <td>BK20230610003</td>
                        <td>王建国</td>
                        <td>137****8765</td>
                        <td>2023-06-14 14:00</td>
                        <td>老年关爱套餐</td>
                        <td><span class="status status-pending">待确认</span></td>
                        <td>
                            <button class="action-btn view"><i class="fas fa-eye"></i> 查看</button>
                            <button class="action-btn edit"><i class="fas fa-edit"></i> 编辑</button>
                        </td>
                    </tr>
                    <tr>
                        <td>BK20230610004</td>
                        <td>刘明</td>
                        <td>135****4321</td>
                        <td>2023-06-15 08:00</td>
                        <td>精英套餐</td>
                        <td><span class="status status-canceled">已取消</span></td>
                        <td>
                            <button class="action-btn view"><i class="fas fa-eye"></i> 查看</button>
                            <button class="action-btn edit"><i class="fas fa-edit"></i> 编辑</button>
                        </td>
                    </tr>
                    <tr>
                        <td>BK20230610005</td>
                        <td>陈婷婷</td>
                        <td>136****9876</td>
                        <td>2023-06-16 10:00</td>
                        <td>基础套餐</td>
                        <td><span class="status status-completed">已完成</span></td>
                        <td>
                            <button class="action-btn view"><i class="fas fa-eye"></i> 查看</button>
                            <button class="action-btn edit"><i class="fas fa-edit"></i> 编辑</button>
                        </td>
                    </tr>
                    <tr>
                        <td>BK20230610006</td>
                        <td>赵刚</td>
                        <td>150****1122</td>
                        <td>2023-06-17 09:30</td>
                        <td>全面套餐</td>
                        <td><span class="status status-pending">待确认</span></td>
                        <td>
                            <button class="action-btn view"><i class="fas fa-eye"></i> 查看</button>
                            <button class="action-btn edit"><i class="fas fa-edit"></i> 编辑</button>
                        </td>
                    </tr>
                    <tr>
                        <td>BK20230610007</td>
                        <td>杨晓丽</td>
                        <td>151****3344</td>
                        <td>2023-06-18 13:00</td>
                        <td>女性专属套餐</td>
                        <td><span class="status status-confirmed">已确认</span></td>
                        <td>
                            <button class="action-btn view"><i class="fas fa-eye"></i> 查看</button>
                            <button class="action-btn edit"><i class="fas fa-edit"></i> 编辑</button>
                        </td>
                    </tr>
                    <tr>
                        <td>BK20230610008</td>
                        <td>周华</td>
                        <td>152****5566</td>
                        <td>2023-06-19 10:30</td>
                        <td>精英套餐</td>
                        <td><span class="status status-confirmed">已确认</span></td>
                        <td>
                            <button class="action-btn view"><i class="fas fa-eye"></i> 查看</button>
                            <button class="action-btn edit"><i class="fas fa-edit"></i> 编辑</button>
                        </td>
                    </tr>
                </tbody>
            </table>
            
            <div class="pagination">
                <button class="pagination-btn"><i class="fas fa-chevron-left"></i></button>
                <button class="pagination-btn active">1</button>
                <button class="pagination-btn">2</button>
                <button class="pagination-btn">3</button>
                <button class="pagination-btn">4</button>
                <button class="pagination-btn">5</button>
                <button class="pagination-btn"><i class="fas fa-chevron-right"></i></button>
            </div>
        </div>
    </main>
    
    <script>
        // 模拟登出功能
        document.getElementById('logout-btn').addEventListener('click', function() {
            if(confirm('确定要退出系统吗？')) {
                alert('您已成功退出系统');
                // 实际应用中这里会跳转到登录页
            }
        });
        
        // 表格行点击效果
        const tableRows = document.querySelectorAll('.data-table tbody tr');
        tableRows.forEach(row => {
            row.addEventListener('click', function(e) {
                // 避免点击按钮时触发
                if(e.target.tagName === 'BUTTON') return;
                
                // 高亮效果
                tableRows.forEach(r => r.classList.remove('selected'));
                this.classList.add('selected');
                
                // 实际应用中这里可以打开详情弹窗
                const name = this.cells[1].textContent;
                alert(`查看 ${name} 的预约详情`);
            });
        });
        
        // 添加按钮悬停效果
        const actionButtons = document.querySelectorAll('.action-btn');
        actionButtons.forEach(btn => {
            btn.addEventListener('mouseenter', function() {
                this.style.transform = 'translateY(-2px)';
                this.style.boxShadow = '0 4px 8px rgba(0,0,0,0.1)';
            });
            
            btn.addEventListener('mouseleave', function() {
                this.style.transform = 'translateY(0)';
                this.style.boxShadow = 'none';
            });
        });
        
        // 模拟导出功能
        const exportBtn = document.querySelector('.export-btn');
        exportBtn.addEventListener('click', function() {
            this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 导出中...';
            setTimeout(() => {
                this.innerHTML = '<i class="fas fa-download"></i> 导出数据';
                alert('数据已成功导出！');
            }, 1500);
        });
    </script>
</body>
</html>
